package ptij.vocoder.baseModel;

public class Cnst {

    public static final int L_TOTAL = 320;
    public static final int L_WINDOW = 240;
    public static final int L_FRAME = 160;
    public static final int L_FRAME_BY2 = 80;
    public static final int L_SUBFR = 40;
    public static final int M = 10;
    public static final int MP1 = 11;
    public static final int AZ_SIZE = 44;
    public static final int PIT_MIN = 18;
    public static final int PIT_MAX = 143;
    public static final int L_INTERPOL = 11;
    public static final int MU = 26214;
    public static final int AGC_FAC = 29491;
    
    public static final int PRM_SIZE = 57;
    public static final int BITS_PER_FRAME = 244;
    public static final int SAMPLE_WIDTH = 13;
    public static final int SERIAL_SIZE = 245;
    
    public static final int L_CODE = 40;
    public static final int NB_TRACK = 5;
    public static final int NB_PULSE = 10;
    public static final int STEP = 5;

    public static final int MAX_32 = 0x7fffffff;
    public static final int MIN_32 = 0x80000000;
    
    public static final short MAX_16 = 0x7fff;
    public static final short MIN_16 = -32768;

    public static final int DTX_HANGOVER = 7;

    public static final int INV_DTX_HANGOVER = (0x7fff / DTX_HANGOVER);
    public static final int INV_DTX_HANGOVER_P1 = (0x7fff / (DTX_HANGOVER+1));

    public static final int TX_SP_FLAG = 0x0001;
    public static final int TX_VAD_FLAG = 0x0002;
    public static final int TX_HANGOVER_ACTIVE = 0x0004;
    public static final int TX_PREV_HANGOVER_ACTIVE = 0x0008;
    public static final int TX_SID_UPDATE = 0x0010;
    public static final int TX_USE_OLD_SID = 0x0020;
}
